# izrada opisnika za Hibernate JPA (persistence.xml) ili nesto slicno
#

make :descriptor => :jpa, :name => 'test' do
#  persistence_implementation_is :openjpa_specific # ... za :jpa opisnik, podrzani: hibernate_, openjpa_, toplink_
#  data_source_is 'java:/LupusDS', :jta => true
#  application_is :local
  application_runs :locally # ili :on_server ... ima li ovaj feature dovoljnu vaznost?
  
  dbms_is :postgresql do # podrzani: postgresql, informix, mysql, hsqldb, sqlserver, oracle
    username_is 'postgres'
    password_is 'subjaspe'
    database_is 'lupus'
    host_is     'callisto'
    port_is     5432
#    server_is   'nije naveden' # za informix
  end
  
  options :show_sql, :create_database
  
  include_lucene_search do
    directory_provider_is :file_system
    index_base_path_is 'indices'
  end
  
#  includes :connection_pooling ... zanemareno za sada
  openjpa_specific do
    add_property 'name', 'value' # dodavanje bilo kojeg svojstva unutar <properties> cvora
  end
end
